package com.example.obtaingaode.db;

import io.objectbox.annotation.Entity;
import io.objectbox.annotation.Id;

/**
 * Created by Ma.Chong on 2017/10/13.
 */

@Entity
public class DbEntity {
    @Id
    private long id;

    private String location;  //经纬度

    private String deviceType;  //类型

    private String deviceNo;  //编号

    private String remark;  //类型内容

    private String userNo;  //用户编号

    private boolean isSaveNet; //是否存入网络

    public DbEntity() {
    }

    public DbEntity(long id, String location, String deviceType, String deviceNo, String remark,
                    String userNo, boolean isSaveNet) {
        this.id = id;
        this.location = location;
        this.deviceType = deviceType;
        this.deviceNo = deviceNo;
        this.remark = remark;
        this.userNo = userNo;
        this.isSaveNet = isSaveNet;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }

    public String getDeviceNo() {
        return deviceNo;
    }

    public void setDeviceNo(String deviceNo) {
        this.deviceNo = deviceNo;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    public boolean getIsSaveNet() {
        return isSaveNet;
    }

    public void setSaveNet(boolean saveNet) {
        isSaveNet = saveNet;
    }
}
